home *** CD-ROM | disk | FTP | other *** search
/ Sunday Savers: Singing Fun! / Sunday Savers: Singing Fun!.iso / mac / Xtras / Buddy API 1.6 / Buddy API Docs.swf / texts / 1552.txt < prev    next >
Encoding:
Text File  |  2004-08-31  |  1.9 KB  |  85 lines

  1. 138
  2. --- RECORDSEPARATOR ---
  3.  
  4. --- RECORDSEPARATOR ---
  5. MoveOnReboot 
  6. --- RECORDSEPARATOR ---
  7. Platform:
  8. --- RECORDSEPARATOR ---
  9.  
  10. --- RECORDSEPARATOR ---
  11. Windows
  12. --- RECORDSEPARATOR ---
  13.  
  14. --- RECORDSEPARATOR ---
  15. Description:
  16. --- RECORDSEPARATOR ---
  17.  
  18. --- RECORDSEPARATOR ---
  19. baMoveOnReboot moves a file on system reboot.
  20. --- RECORDSEPARATOR ---
  21.  
  22. --- RECORDSEPARATOR ---
  23. Usage:
  24. --- RECORDSEPARATOR ---
  25.  
  26. --- RECORDSEPARATOR ---
  27. Result = baMoveOnReboot( SourceFile, DestFile )
  28. --- RECORDSEPARATOR ---
  29.  
  30. --- RECORDSEPARATOR ---
  31. Arguments:
  32. --- RECORDSEPARATOR ---
  33.  
  34. --- RECORDSEPARATOR ---
  35. String, string. 
  36. --- RECORDSEPARATOR ---
  37. SourceFile is the file to move. 
  38. --- RECORDSEPARATOR ---
  39. DestFile is the new name of the file.
  40. --- RECORDSEPARATOR ---
  41.  
  42. --- RECORDSEPARATOR ---
  43. Returns:
  44. --- RECORDSEPARATOR ---
  45.  
  46. --- RECORDSEPARATOR ---
  47. Integer. 
  48. --- RECORDSEPARATOR ---
  49. The function returns 1 if 
  50. --- RECORDSEPARATOR ---
  51. successful, otherwise 0. Note that the function can not 
  52. --- RECORDSEPARATOR ---
  53. check if the file will actually be moved/deleted, only that Windows will attempt to do 
  54. --- RECORDSEPARATOR ---
  55. it when the system next reboots.
  56. --- RECORDSEPARATOR ---
  57.  
  58. --- RECORDSEPARATOR ---
  59. Examples:
  60. --- RECORDSEPARATOR ---
  61.  
  62. --- RECORDSEPARATOR ---
  63. Director: 
  64. --- RECORDSEPARATOR ---
  65. OK = baMoveOnReboot( "c:\Data\student.log", "c:\Backup\student.log" ) 
  66. --- RECORDSEPARATOR ---
  67. Authorware: 
  68. --- RECORDSEPARATOR ---
  69. OK := baMoveOnReboot( "c:\\Data\\student.log", "c:\\Backup\\student.log" )
  70. --- RECORDSEPARATOR ---
  71.  
  72. --- RECORDSEPARATOR ---
  73. Notes:
  74. --- RECORDSEPARATOR ---
  75.  
  76. --- RECORDSEPARATOR ---
  77. This function allows you to move or delete a file that is currently in use by Windows 
  78. --- RECORDSEPARATOR ---
  79. and can't be moved or deleted until Windows restarts. 
  80. --- RECORDSEPARATOR ---
  81. Passing in an empty string as the DestFile will mean that the file will be deleted on 
  82. --- RECORDSEPARATOR ---
  83. reboot. 
  84. --- RECORDSEPARATOR ---
  85. This function will work on folders as well as files.